##
# This module requires Metasploit: https://metasploit.com/download
# Current source: https://github.com/rapid7/metasploit-framework
##

require 'msf/core'

class MetasploitModule < Msf::Exploit

  def initialize(info = {})
    super(update_info(info,
      'Name'           => "Check Test Exploit",
      'Description'    => %q{
          This module ensures that 'check' actually functions for Exploit modules.
      },
      'References'     =>
        [
          [ 'OSVDB', '0' ]
        ],
      'Author'         =>
        [
          'todb'
        ],
      'License'        => MSF_LICENSE,
      'DisclosureDate' => 'May 23 2013'
    ))

    register_options(
      [
        Opt::RPORT(80)
      ], self.class)
  end

  def check
    vprint_status("Check is successful")
    return Msf::Exploit::CheckCode::Vulnerable
  end

  def exploit
    vprint_status("Exploit is successful.")
  end

end
